attachParticipantToView

abstract fun attachParticipantToView(participantGuid: String, view: TextureView): AttachParticipantStreamResult

Attaches a participant video to a view.This will cause the stream of video to be rendered and visible in the given view. Should only be called for videos in the videoStreams array.A video may only be attached to one view at a time. Calling this method on a stream that is already attached will implicitly call the detachParticipantStreamFromView(participantGuid: String) method first.

Return

An instance of AttachParticipantStreamResult representing either a success or failure

Parameters

A

TextureView where the video needs to be rendered